const { app, BrowserWindow } = require("electron")

const createWindow = () => {
    const bw = new BrowserWindow({
        width: 600,
        height: 800,
        title: "deepseek",
        autoHideMenuBar: true
    })

    bw.loadURL("https://chat.deepseek.com/")


    /** 在Mac系统下不关闭应用 */
    app.on('activate', () => {
        if (BrowserWindow.getAllWindows().length === 0) {
            createWindow()
        }
    })

    app.on('window-all-closed', () => {
        if (process.platform !== 'darwin') {
            app.quit()
        }
    })
}





app.on("ready", () => {
    createWindow()
})

